package test5.lupeng.jf.com.teamdemo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by C-yx on 2017/8/1.
 */

public class AtOthersBean  implements Parcelable {
    private  String userId;
    private  String username;

    public AtOthersBean(String userId, String username) {
        this.userId = userId;
        this.username = username;
    }

    protected AtOthersBean(Parcel in) {
        userId = in.readString();
        username = in.readString();
    }

    public static final Creator<AtOthersBean> CREATOR = new Creator<AtOthersBean>() {
        @Override
        public AtOthersBean createFromParcel(Parcel in) {
            return new AtOthersBean(in);
        }

        @Override
        public AtOthersBean[] newArray(int size) {
            return new AtOthersBean[size];
        }
    };

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(userId);
        parcel.writeString(username);
    }
}
